package com.black.app.mapper.exercise;

import com.black.app.domain.exercise.AppExerciseGroup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author L
* @description 针对表【app_exercise_group】的数据库操作Mapper
* @createDate 2024-10-23 16:57:08
* @Entity com.black.app.domain.exercise.AppExerciseGroup
*/
public interface AppExerciseGroupMapper extends BaseMapper<AppExerciseGroup> {

    /**
     * 根据系列id查询
     * @param seriesId
     * @return
     */
    List<AppExerciseGroup> findBySId(Long seriesId);

    /**
     * 根据系列id和组号查询
     * @param seriesId
     * @param groupNum
     * @return
     */
    AppExerciseGroup findBySIdAndGroup(@Param("seriesId") Long seriesId, @Param("groupNum") Integer groupNum);

    /**
     * 根据组id查询
     * @param groupId
     * @return
     */
    AppExerciseGroup findByGId(Long groupId);

    /**
     * 根据系列id和组id查询
     * @param sid
     * @param gid
     * @return
     */
    AppExerciseGroup findBySidAndGid(@Param("sid") Long sid,@Param("gid") Long gid);
}




